<?php if ($success): ?>
    <div class="alert alert-block alert-success">
        <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
        <p><?php echo $success; ?></p>
    </div>
<?php endif; ?>

<?php if ($error): ?>
    <div class="alert alert-block alert-error">
        <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
        <p><?php echo $error; ?></p>
    </div>
<?php endif; ?>

<?php if ($message): ?>
    <div class="alert alert-block alert-error">
        <button type="button" class="close" data-dismiss="alert"><i class="icon-remove"></i></button>
        <p><?php echo $message; ?></p>
    </div>
<?php endif; ?>